<template name="reg">
  <form class="form-horizontal"> 
    <fieldset> 
      <legend>用户注册</legend> 
      <div class="control-group"> 
        <label class="control-label" for="username">用户名</label> 
        <div class="controls"> 
          <input type="text" class="input-xlarge" id="username" name="username"> 
        </div> 
      </div> 
      <div class="control-group">
        <label class="control-label" for="password">密码</label>
        <div class="controls"> 
          <input type="password" class="input-xlarge" id="password" name="password"> 
        </div>
      </div> 
      <div class="control-group"> 
        <label class="control-label" for="password-repeat">重复输入密码</label> 
        <div class="controls"> 
          <input type="password" class="input-xlarge" id="password-repeat" name="password-repeat"> 
        </div> 
      </div> 
      <div class="form-actions"> 
        <button id="submit" class="btn btn-primary">注册</button> 
      </div> 
    </fieldset> 
  </form> 
</template>